package com.flymobi.service;

import java.util.List;

import com.flymobi.fw.modules.CommonService;
import com.flymobi.po.Roles;
import com.flymobi.util.QL;

public class RolesService extends CommonService {

	public List<Roles> list() {
		return dao.find(Roles.class, QL.HQL.Roles.LIST, new Object[] {});
	}

	public void save(Roles Roles) {
		dao.save(Roles);
	}

	public Roles load(String id) {
		return dao.load(Roles.class, new Long(id));
	}
	
	public Roles get(String id) {
		return dao.get(Roles.class, new Long(id));
	}

	public void delete(String id) {
		dao.delete(this.get(id));
	}
}
